package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ShoppingCartService {

    /**
     * 添加购物车
     * @param cart
     */
    void addCart(ShoppingCartDTO cart);

    /**
     * 查看购物车
     */
    List<ShoppingCart> select();

    /**
     * 删除一个购物车菜品
     * @param shoppingCartDTO
     */
    void deleteCart(ShoppingCartDTO shoppingCartDTO);
}
